package com.ldp.designpatterns.study.single.lazy;

/**
 * @ClassName LazyCodeSingle
 * @Description 懒汉式——同步代码块
 * 特点：线程安全
 * @Author lindipei
 * @Date 2023/10/13 17:25
 */
public class LazyCodeSingle {
   /* private static LazyCodeSingle instance;
    private LazyCodeSingle (){}

    private static LazyCodeSingle getInstance(){
        if(instance == null){
            synchronized (LazyCodeSingle.class){
                instance = new LazyCodeSingle();
            }
        }
        return  instance;
    }*/
}
